﻿using System.Collections.Generic;
using ImageProcessing.Common;

namespace ImageProcessing.Engine
{
    public class ConfidenceCalculator
    {
        private readonly float _allPointsCount;

        public ConfidenceCalculator(List<InterestPoint> allFoundPoints)
        {
            _allPointsCount = allFoundPoints.Count;
        }

        public int Calculate(List<InterestPoint> allMatchedPoints)
        {
            return (int)((allMatchedPoints.Count / _allPointsCount) * 100);
        }
    }
}
